package com.cskaoyan.service;

import com.cskaoyan.bean.OrderSubmitBo;
import com.cskaoyan.bean.vo.OrderDetailVo;
import com.cskaoyan.bean.vo.WXOrderDetailRespVo;
import com.cskaoyan.bean.vo.WXOrderListRespVo;
import com.cskaoyan.bean.vo.order.*;

import java.util.List;
import java.util.Map;

/**
 * @title: WXOrderService
 * @Author wangguangwu
 * @Description: 微信小程序的业务层
 * @Date: 2021/4/12 7:48 下午
 */

public interface WXOrderService {

    Integer count();

//    OrderVo orderList(Integer page, Integer limit,String sort, String order, Integer userId,String orderSn,Integer[] orderStatusArray);


    OrderDetailVo orderDetail(Integer id);




    void addShipInfo(Integer orderId, String shipChannel, String shipSn);

    Map<String,Object> orderList(Integer userId, String orderSn, List<Short> orderStatusArray, Integer page, Integer limit, String sort, String order);

    Map<Object,Object> orderInfo(Integer id);

    WxOrderListVo wxOrderList(Integer showType, Integer page, Integer size);

    OrderWxDetailRespVo wxOrderDetail(Integer orderId);


    void wxOrderConfirm(Integer orderId);

    // WxOrderPreCommentVo wxOrderGoods(Integer orderId, Integer goodsId);

    WxOrderCommentVo createGoodsComment(OrderWxCommentRequBo orderWxCommentRequBo);


    void cancelOrderById(Integer orderId);

    void deleteOrderById(Integer orderId);

    WxOrderPreCommentVo wxOrderGoods(Integer orderId, Integer goodsId);

    Map<String, Object> wxOrderSubmit(OrderSubmitBo orderSubmitBo);

    void refundOrder(Integer orderId);

    void setStatusPaid(Integer orerId);
}
